{dede:config.pagesize value="20"/}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>网站会员管理</title>
<link href="css/base.css" rel="stylesheet" type="text/css">
<script language="javascript" src="js/member.js"></script>
<script type="text/javascript" src="js/calendar/calendar.js"></script>
<script language='javascript' src="js/main.js"></script>
<style type="text/css">
.rb{ border-right:1px solid #666666 }
.tb{ border-top:1px solid #666666 }
.calendar{top:45px !important;}
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" style="margin-bottom:6px">
    <tr>
        <td height="30" align="center" bgcolor="#F9FCEF">
            <form action="member_count.php" name="form1" method="get">
                <table border="0" cellspacing="0" cellpadding="3">
                    <tr>
                        <td width="90">&nbsp;日期筛选：</td>
                        <td width="241">
                            <?php
          $nowtime = $pubdate ? $pubdate :date('Y-m-d',time());
          echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" style=\"width:120px\">";

                            ?>
                            <script language="javascript" type="text/javascript">
                                var showX = getElementLeft($Obj("pubdate")) - 130;
                                var showY = (window.navigator.userAgent.indexOf("MSIE") >=1 )? getElementTop($Obj("pubdate")) + 465 :  getElementTop($Obj("pubdate")) + 435;
                                if((window.navigator.userAgent.indexOf("MSIE 7.0") >=1 )) {
                                    showX = getElementLeft($Obj("pubdate"))+105;
                                    showY = getElementTop($Obj("pubdate"))+1200;
                                }
                                if(window.navigator.userAgent.indexOf("MSIE 6.0")>=1)
                                {
                                    Calendar.setup({
                                        inputField     :    "pubdate",
                                        ifFormat       :    "%Y-%m-%d",
                                        showsTime      :    true,
                                        timeFormat     :    "24"
                                    });
                                } else {
                                    Calendar.setup({
                                        inputField     :    "pubdate",
                                        ifFormat       :    "%Y-%m-%d",
                                        showsTime      :    true,
                                        position       :    [showX, showY],
                                        timeFormat     :    "24"
                                    });
                                }
                            </script>    </td>
                        <td width="100">至</td>
                        <td width="241">
                            <?php
          $nowtime = $pubdates ? $pubdates :date('Y-m-d',time());
          echo "<input name=\"pubdates\" value=\"$nowtime\" type=\"text\" id=\"pubdates\" style=\"width:120px\">";

                            ?>
                            <script language="javascript" type="text/javascript">
                                var showX = getElementLeft($Obj("pubdates")) - 130;
                                var showY = (window.navigator.userAgent.indexOf("MSIE") >=1 )? getElementTop($Obj("pubdates")) + 465 :  getElementTop($Obj("pubdates")) + 435;
                                if((window.navigator.userAgent.indexOf("MSIE 7.0") >=1 )) {
                                    showX = getElementLeft($Obj("pubdates"))+105;
                                    showY = getElementTop($Obj("pubdates"))+1200;
                                }
                                if(window.navigator.userAgent.indexOf("MSIE 6.0")>=1)
                                {
                                    Calendar.setup({
                                        inputField     :    "pubdates",
                                        ifFormat       :    "%Y-%m-%d",
                                        showsTime      :    true,
                                        timeFormat     :    "24"
                                    });
                                } else {
                                    Calendar.setup({
                                        inputField     :    "pubdates",
                                        ifFormat       :    "%Y-%m-%d",
                                        showsTime      :    true,
                                        position       :    [showX, showY],
                                        timeFormat     :    "24"
                                    });
                                }
                            </script>    </td>
                        <td>注册人数：</td>
                        <td><?php echo $member_count; ?></td>
                        <td>
                            <input name="imageField" class="np" type="image" src="images/button_search.gif" width="60" height="22" border="0" />
                        </td>
                    </tr>
                </table>
            </form>
        </td>
    </tr>
</table>
<form name="form2">
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#cfcfcf">
  <tr> 
  <td height="28" colspan="9" background="images/tbg.gif">
   <table width="99%" border="0" cellspacing="0" cellpadding="0">
     <tr>
       <td width="29%" style="padding-left:10px;"><strong>注册会员列表</strong></td>
     </tr>
  </table>
 </td>
</tr>
  <tr bgcolor="#FEFCEF" height="30" align="center"> 
    <td width="3%">选择</td>
    <td width="5%">mid</td>
    <td width="11%">登录名</td>
    <td width="16%">email/昵称</td>
    <td width="5%">性别</td>
    <td width="8%">会员等级</td>
    <td width="15%">会员属性</td>
    <td width="14%">最后登录</td>
    <td>操作</td>
  </tr>
{dede:datalist} 
<tr height="26" align="center" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';"
  	 onMouseOut="javascript:this.bgColor='#FFFFFF';"> 
  <td><input name="mid" type="checkbox" id="mid" value="{dede:field.mid/}" class="np" /></td>
  <td>{dede:field.mid/}</td>
  <td><a href="<?php echo $cfg_memberurl;?>/index.php?uid={dede:field.userid/}" target='_blank'>
    <?php
	  echo '<u>'.$fields['userid'].'</u>';
	if($fields['spacesta']==-2) echo "<font color='red'>(禁言)</font>";
	if($fields['spacesta']==-1) echo "<font color='red'>(未审核)</font>";
	  if(!empty($fields['face'])) {
       echo "<br /><img src='{$fields['face']}' width='60' alt='浏览会员空间' />";
	  }
	?>
  </a></td>
	<td>
	  {dede:field.email/}
	  <br />
	  昵称：{dede:field.uname/}
	</td>
  <td>
  	{dede:field.sex /}
  </td>
  <td>
  	<a href="member_main.php?rank={dede:field.rank/}">{dede:field.rank function="GetMemberName(@me,'限制会员')"/}</a>
  </td>
  <td>
  	{dede:field.mtype /}用户 {dede:field.matt function="GetMAtt(@me)" /}
  	<br />
  	金币：{dede:field.money /} 积分：{dede:field.scores /}
  </td>
  <td>
  	{dede:field.logintime function="MyDate('y-m-d H:i',@me)" /}
  	<br />
  	【{dede:field.loginip /}】
  </td>
  <td align="center">
    <a href="member_view.php?id={dede:field.mid/}">修改</a> | 
    <a href="member_do.php?id={dede:field.mid/}&dopost=delmember">删除</a> |
    <a href="content_list.php?mid={dede:field.mid/}" target="_blank">文档</a> |
    <a href="member_toadmin.php?id={dede:field.mid/}" target="_self">提升</a> |
    <a href="member_pmone.php?touid={dede:field.userid/}" target="_self">发消息</a>
  </td>
</tr>
{/dede:datalist}
<tr bgcolor="#F9FCEF"> 
 <td height="36" colspan="9" align="center">
	{dede:pagelist listsize='6' /}
 </td>
</tr>
</table>
</form>
</body>
</html>